package com.itheima.common;

/**
 * @author :WuJunJie
 * packageName :com.itheima.common
 * fileName :TreadLocalUtil
 * creationTime :2022-11-24 10:38
 */
public class ThreadLocalUtil {
    private static ThreadLocal<String> threadLocal=new ThreadLocal<>();

    public static void setid(String id){
        threadLocal.set(id);
    }

    public static String getid(){
        return threadLocal.get();
    }

    public static void remove( ){
        threadLocal.remove();
    }
}
